package com.ysd.twocrm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

//用户表
public class Users implements Serializable {
    @TableId(value = "userId",type = IdType.AUTO)
    private Integer userId;//用户编号

    private String userLoginName;//登录名 唯一

    private String userPassword;//密码

    private String userSex;//性别

    private String userName;//名字

    private Integer userIsLockOut;//是否锁定   0：未上锁 1:已上锁
   @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userCreateTime;//用户创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date userLastLoginTime;//最后一次登录时间

    private Integer userpsdWrongSum;//密码错误次数
    private Date userLockTime;//被锁定的时间

    private String userProtectMail;//密保邮箱 唯一

    private String userProtectMtel;//密保手机号 唯一

    private Integer IsUserRoleId;//用于判断是否是管理员 0 是管理员 1是学生 2：员工（带职位的） 3:游客

    private Integer IsCounselor;//对应的咨询师 可为空

    private Integer exit1;//备用字段1  当为0则开启自动分配，为1则经理自动分配

    private String exit2;//备用字段2

    public Integer getExit1() {
        return exit1;
    }

    public void setExit1(Integer exit1) {
        this.exit1 = exit1;
    }

    public String getExit2() {
        return exit2;
    }

    public void setExit2(String exit2) {
        this.exit2 = exit2;
    }

    public Integer getIsUserRoleId() {
        return IsUserRoleId;
    }

    public void setIsUserRoleId(Integer isUserRoleId) {
        IsUserRoleId = isUserRoleId;
    }

    public Integer getIsCounselor() {
        return IsCounselor;
    }

    public void setIsCounselor(Integer isCounselor) {
        IsCounselor = isCounselor;
    }

    public Integer getUserId() {
        return userId;
    }

    public String getUserLoginName() {
        return userLoginName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public String getUserSex() {
        return userSex;
    }

    public String getUserName() {
        return userName;
    }

    public Integer getUserIsLockOut() {
        return userIsLockOut;
    }

    public Date getUserCreateTime() {
        return userCreateTime;
    }

    public Date getUserLastLoginTime() {
        return userLastLoginTime;
    }

    public Integer getUserpsdWrongSum() {
        return userpsdWrongSum;
    }

    public Date getUserLockTime() {
        return userLockTime;
    }

    public String getUserProtectMail() {
        return userProtectMail;
    }

    public String getUserProtectMtel() {
        return userProtectMtel;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public void setUserLoginName(String userLoginName) {
        this.userLoginName = userLoginName;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setUserIsLockOut(Integer userIsLockOut) {
        this.userIsLockOut = userIsLockOut;
    }

    public void setUserCreateTime(Date userCreateTime) {
        this.userCreateTime = userCreateTime;
    }

    public void setUserLastLoginTime(Date userLastLoginTime) {
        this.userLastLoginTime = userLastLoginTime;
    }

    public void setUserpsdWrongSum(Integer userpsdWrongSum) {
        this.userpsdWrongSum = userpsdWrongSum;
    }

    public void setUserLockTime(Date userLockTime) {
        this.userLockTime = userLockTime;
    }

    public void setUserProtectMail(String userProtectMail) {
        this.userProtectMail = userProtectMail;
    }

    public void setUserProtectMtel(String userProtectMtel) {
        this.userProtectMtel = userProtectMtel;
    }

    public Users(Integer userId, String userLoginName, String userPassword, String userSex, String userName, Integer userIsLockOut, Date userCreateTime, Date userLastLoginTime, Integer userpsdWrongSum, Date userLockTime, String userProtectMail, String userProtectMtel, Integer isUserRoleId, Integer isCounselor, Integer exit1, String exit2) {
        this.userId = userId;
        this.userLoginName = userLoginName;
        this.userPassword = userPassword;
        this.userSex = userSex;
        this.userName = userName;
        this.userIsLockOut = userIsLockOut;
        this.userCreateTime = userCreateTime;
        this.userLastLoginTime = userLastLoginTime;
        this.userpsdWrongSum = userpsdWrongSum;
        this.userLockTime = userLockTime;
        this.userProtectMail = userProtectMail;
        this.userProtectMtel = userProtectMtel;
        IsUserRoleId = isUserRoleId;
        IsCounselor = isCounselor;
        this.exit1 = exit1;
        this.exit2 = exit2;
    }

    public Users() {
        super();
    }

    @Override
    public String toString() {
        return "Users{" +
                "userId=" + userId +
                ", userLoginName='" + userLoginName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userName='" + userName + '\'' +
                ", userIsLockOut=" + userIsLockOut +
                ", userCreateTime=" + userCreateTime +
                ", userLastLoginTime=" + userLastLoginTime +
                ", userpsdWrongSum=" + userpsdWrongSum +
                ", userLockTime=" + userLockTime +
                ", userProtectMail='" + userProtectMail + '\'' +
                ", userProtectMtel='" + userProtectMtel + '\'' +
                ", IsUserRoleId=" + IsUserRoleId +
                ", IsCounselor=" + IsCounselor +
                ", exit1=" + exit1 +
                ", exit2='" + exit2 + '\'' +
                '}';
    }
}
